package day04;

public class Demo06 {
	public static void main(String[] args) {
		int[] arr = new int[5];
		
		// 对数组元素的操作分为 赋值 和 取值
		
		arr[0] = 10; // 向元素赋值
		
		// 读取元素的值
		System.out.println(arr[1]); // 0
		System.out.println(arr[0]); // 10
		
		int[] arr2 = {1, 12, 45, 90, 88};
		System.out.println(arr2[3]);
		
		char[] arr3 = {'x', 'f', 'c', 'd', 'u'};
		System.out.println(arr3[2]);
		
		int[] a;
		a = new int[3];
		a = new int[]{1, 2, 3};
		
	}
}
